<!--
  @author wangjie
  @since 2019/07/31
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'subgoalId',type:'checkbox', fixed: 'left', width:50 }"></th>
        <th lay-data="{field:'orgName', unresize:true, align:'center'}">所属组织</th>
        <th lay-data="{field:'objMasterName',  unresize:true, align:'left'}">部门</th>
        <th lay-data="{field:'subgoalId',  unresize:true, align:'left'}">目标ID</th>
        <th lay-data="{field:'objName',  unresize:true, align:'left'}">目标规则名称</th>
        <th lay-data="{field:'objYear',  unresize:true, align:'left'}">目标年份</th>
        <th lay-data="{field:'validTime', unresize:true, align:'left'}">生效时间</th>
        <th lay-data="{field:'updateTime', unresize:true, align:'left'}">修改时间</th>
    </tr>
    </thead>
    <tbody>
        <tr th:each="item:${items}">
            <td th:text="${item.subgoalId}"></td>
            <td th:text="${item.orgName}"></td>
            <td th:text="${item.objMasterName}"></td>
            <td th:text="${item.subgoalId}"></td>
            <td th:text="${item.objName}"></td>
            <td th:text="${item.objYear}"></td>
            <td th:text="${T(com.zmn.common.utils.date.DateUtil).toString(item.validTime)}"></td>
            <td th:text="${T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime)}"></td>
        </tr>
    </tbody>
</table>
